cmake_minimum_required(VERSION 3.0.2)
project(pnp_utils)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  cv_bridge
  image_transport
  sensor_msgs
  nav_msgs
  tf
)

find_package(OpenCV 3.4.1 REQUIRED)

catkin_package(
  INCLUDE_DIRS include
  LIBRARIES pnp_utils
  CATKIN_DEPENDS roscpp cv_bridge image_transport sensor_msgs
  DEPENDS OpenCV
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
  ${OpenCV_INCLUDE_DIRS}
)

add_executable(pnp_node src/pnp.cpp)
target_link_libraries(pnp_node ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
